/*
 * Copyright 2015-2016 Imply Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '../../imports';
$checkbox-width: 20px;

.suggestion-modal {

  @import '../../utils/styles/grid';

  .background {
    background: $background-lightest;
    padding: 10px 0;
    max-height: 300px;
    overflow: auto;

    .message {
      padding: 4px 10px;
      color: $text-light;
      font-style: italic;
    }
  }

  .explanation {
    margin-bottom: 10px;
  }

  .actions {
    button {
      @extend %button-light-action;
    }

    padding-bottom: 10px;
  }

  .row {
    padding-left: $padding-compact;
    height: 27px;
    cursor: pointer;
    white-space: nowrap;

    .label {
      position: absolute;
      top: 5px;
      left: $checkbox-width;
    }

    &:hover {
      background: $hover;
    }
  }

  .checkbox {
    margin-top: 2px;

    &.selected {
      .checkbox-body {
        background: $brand;
      }
    }
  }

  .button-bar {
    margin-top: 20px;

    button {
      min-width: 70px;

      &:not(:last-child) {
        margin-right: 6px;
      }

      &.alternate {
        @extend %button-light-action;
      }
    }
  }
}
